<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <div id="app">
        <input type="checkbox" id="checkbox" v-model="checked">
        <label for="checkbox">{{ checked }}</label>

        <input type="checkbox" id="jack" value="Jack" v-model="checkedNames">
        <label for="jack">Jack</label>
        <input type="checkbox" id="john" value="John" v-model="checkedNames">
        <label for="john">John</label>
        <input type="checkbox" id="mike" value="Mike" v-model="checkedNames">
        <label for="mike">Mike</label>
        <br>
        <span>Checked names: {{ checkedNames }}</span>

        <div id="example-4">
            <input type="radio" id="one" value="0" v-model.number="picked">
            <label for="one">One</label>
            <br>
            <input type="radio" id="two" value="1" v-model.number="picked">
            <label for="two">Two</label>
            <br>
            <span>Picked: {{ typeof picked }}</span>
        </div>
        <div id="example-5">
            <select v-model="selected">
                <option value="-1">请选择</option>
                <option value="0">A</option>
                <option value="1">B</option>
                <option value="2">C</option>
            </select>
            <span>Selected: {{ selected }}</span>
        </div>
        <input type="radio" v-model="picked" v-bind:value="a">
        <span>Picked: {{ a }}</span>
        <input type="text" v-model.lazy="msg">
        {{msg}}
    </div>
<script src="../js/vue.js"></script>
<script>
    let app = new Vue({
        el: "#app",
        data: {
            checked: false,
            checkedNames: ["Jack", "Mike"],
            picked: -1,
            selected: '1',
            a: "10",
            msg: ""
        }
    })
</script>
</body>
</html>